package org.gd.beancp;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-09-30 13:35
 */
@JsonAutoDetect
class User {

    @JsonProperty
    private int id;
    @JsonProperty
    private String name;
    @JsonProperty
    private Address address;
    @JsonProperty
    private Meta meta;

    int getId() {
        return id;
    }

    void setId(int id) {
        this.id = id;
    }

    String getName() {
        return name;
    }

    void setName(String name) {
        this.name = name;
    }

    Address getAddress() {
        return address;
    }

    void setAddress(Address address) {
        this.address = address;
    }

    Meta getMeta() {
        return meta;
    }

    void setMeta(Meta meta) {
        this.meta = meta;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address=" + address +
                ", meta=" + meta +
                '}';
    }
}
